home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen… 1994 February Supplement / ARPL-Feb-94-Supplement-PowerPC.iso / 3rd Party PowerPC Demo Apps / Aldus FreeHand / Aldus FreeHand 4.0 TV / Aldus FreeHand 4.0 TV.rsrc / Post_1066 < prev    next >
Encoding:
Text File  |  1994-01-25  |  1.3 KB  |  58 lines

  1. /extrude
  2. /chg xdf /deltay xdf /deltax xdf 
  3. /tc1 xdf storerect /tc2 xdf
  4. /factor .95 def
  5. newpath
  6. tc1 length 2 eq 
  7. {/tc1 tc1 spottoprocess def} if 
  8. tc2 length 2 eq 
  9. {/tc2 tc2 spottoprocess def} if 
  10. /cnt todraw def 
  11. /ts 
  12. {gsave currentpoint pop /xstart xdf blockxoff wordxoff add yoff 
  13. rmoveto scalef dup scale right left sub 2 div xstart left sub sub
  14. neg curtextheight 2 div neg rmoveto awidthshow grestore}def
  15. 1 1 todraw div neg 0
  16.  dup .02 le{pop 0}if /frac xdf 
  17.  gsave 
  18.  
  19.  0 1 3
  20.  {
  21. bc4 exch 
  22. tc1 1 index get 
  23. tc2 2 index get 
  24. 1 index sub 
  25. frac mul add put 
  26.  }for 
  27.  bc4 vc 
  28.  dup exec 
  29.  cnt 1 ne{grestore}if  
  30.  /cnt cnt 1 sub def  
  31. } for 
  32. /ts{gsave awidthshow grestore}def 
  33. tc1 vc dup exec tc2 vc 
  34. curtextheight .005 mul setlinewidth
  35. /ts {{false charpath stroke}ta} def exec 
  36. grestore
  37. }bdf
  38. /blockxoff 
  39. {right left sub 2 div currentpoint pop left sub sub}def 
  40. /yoff 
  41. {curtextheight 2 div deltay todraw div cnt mul add}def
  42.  
  43. /wordxoff 
  44. {deltax todraw div cnt mul}def
  45. /todraw 
  46. { deltax dup mul deltay dup mul add sqrt factor mul
  47. 100 chg sub abs factor mul add 
  48. dup 0 le{pop 1}{round}ifelse} def
  49. /scalef 
  50. {100 chg sub abs 100 div todraw div cnt mul
  51.  chg 100 ge{1 add}{1 exch sub}ifelse}def
  52. /spottoprocess
  53. {aload pop spots exch get aload pop pop pop 
  54. 0 1 3{pop 4 index mul 4 -1 roll}for 
  55. 4 array astore exch pop}bdf